/*
 * Copyright (c) gitee.com/jiandong001.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

//context related definition
export const InitializeRuntime: number = 0
export const InitializeBridge: number = 1
export const CreateAndSetUpContext: number = 2
export const CreateAndSetUpContextFinished = `0`
export const AttachInstanceAndView: number = 3
export const RunBundleFromFile: number = 4
export const RunBundleFromBuffer: number = 5
export const DirectRunScript: number = 6
export const RunBundle: number = 7
export const RunApplication: number = 8
export const ProcessPackages: number = 9
export const OnHostForeground: number = 10

// module related definition
export const UIManagerModuleMessage = 1

// view related definition
export const CreateView: number = 0
export const UpdateView: number = 1


export const enum JSBundleLoaderType {
  defaultBundleLoader = 0,
  abcBundleLoader = 1,
  directBundleLoader = 2,
}

export const enum JSExecutorType {
  ArkJs = 0,
  Hermes = 1
}
